package com.tender;

import com.tender.common.Result;
import com.tender.fallback.WebSocketServerApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

// 多线程动态修改 ws.server.applicationName 会有问题，因此改用 RestTemplate 来 PRC 调用
//@FeignClient(name = "${ws.server.applicationName}",
//        path = "/api/ws/server", fallbackFactory = WebSocketServerApiFallback.class)
public interface WebSocketServerApi {

    @GetMapping("/count/all")
    Result<Integer> countAll();

    @GetMapping("/pc/count/all")
    Result<Integer> pcCountAll();

    @GetMapping("/ipad/count/all")
    Result<Integer> ipadCountAll();

    @GetMapping("/app/count/all")
    Result<Integer> appCountAll();

}
